import request from "@/utils/request"

// 获取列表
export const listOnsite = (params = {}) => { return request.get('/business/inspectionTask/list', { params }) }
// 获取详情
export const getOnsiteById = (params) => { return request.get(`/business//inspectionTaskDetail/${params}`) }
// 删除
export const deleteOnsite = (params) => { return request.delete('/business/inspectionTask', { data: params }) }
// 修改
export const updateOnsite = (params = {}) => { return request.put(`/business/inspectionTaskDetail`, params) }
// 新增
export const addOnsite = (params = {}) => { return request.post('/business/inspectionTask/scanQrCode', params) }

